import 'dart:io';

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_flavor/flutter_flavor.dart';

import 'example_app.dart';
void main() {
  /*
  * static final uploadFileRoot = 'creators/';

* ossScheme = "https"
  static String endpoint =
      'https://contenthub-pd.oss-cn-shenzhen.aliyuncs.com/';

  static String ossUrl = 'https://cc-rc-api.amway.com.cn/v1/creator/sts';

  static String appCode = 'APPCODE 7cdd888562c04bf1940c41d2e330612f';
  * */
  FlavorConfig(
      name: "集成测试",
      color: Colors.amberAccent,
      location: BannerLocation.bottomStart,
      variables: {
        "baseUrl": "https://apift1-newcommerce.amwaynet.com.cn/creatorconf-app/",
        "creatorUserName": "gh_8abc1b7b5d8e",
        "creatorPath": "/pages/index/index?shareFrom=",
        "miniProgramType": 2,
        "ossDomain": "cc-rc-api.amway.com.cn",
        "ossPath": "/v1/creator/sts",
        "ossAppCode": "APPCODE 7cdd888562c04bf1940c41d2e330612f",
        "ossEndpoint": "https://contenthub-pd.oss-cn-shenzhen.aliyuncs.com/",
        "ossUploadFileRoot": "creators/",
        "AppCode": "AppCode ea46756f1e2541f29ccdc7f596c281c9",
        "webPageUrl": "https://ressuperapp.amway.com.cn",
        "pictureBaseUrl":"https://resources.amway.com.cn/",
        "universalLink": "https://ressuperapp.amway.com.cn",


      }
  );
  runApp(ExampleApp());
  if (Platform.isAndroid) {
    // 以下两行 设置android状态栏为透明的沉浸。写在组件渲染之后，是为了在渲染后进行set赋值，覆盖状态栏，写在渲染之前MaterialApp组件会覆盖掉这个值。
    SystemUiOverlayStyle systemUiOverlayStyle =
        SystemUiOverlayStyle(statusBarColor: Colors.transparent);
    SystemChrome.setSystemUIOverlayStyle(systemUiOverlayStyle);
  }
}
